package com.booksystem.common;


/**
 * <p>
 *   结果码常量定义
 * </p>
 * @author 段伟豪
 */
public class ResultCodeConstant {

    // 成功
    public static final String CODE_000000 = "000000";
    public static final String CODE_000000_MSG = "调用成功";

    // 失败
    public static final String CODE_000001 = "000001";
    public static final String CODE_000001_MSG = "操作失败";

    // 用户相关错误
    public static final String CODE_USER_EXISTS = "USER_EXISTS";
    public static final String CODE_USER_EXISTS_MSG = "用户名已存在";

    public static final String CODE_EMAIL_EXISTS = "EMAIL_EXISTS";
    public static final String CODE_EMAIL_EXISTS_MSG = "邮箱已被注册";

    public static final String CODE_USER_NOT_FOUND = "USER_NOT_FOUND";
    public static final String CODE_USER_NOT_FOUND_MSG = "用户不存在";

    public static final String CODE_PASSWORD_ERROR = "PASSWORD_ERROR";
    public static final String CODE_PASSWORD_ERROR_MSG = "密码错误";

    public static final String CODE_OLD_PASSWORD_ERROR = "OLD_PASSWORD_ERROR";
    public static final String CODE_OLD_PASSWORD_ERROR_MSG = "原密码不正确";

    public static final String CODE_USER_INFO_NOT_FOUND = "USER_INFO_NOT_FOUND";
    public static final String CODE_USER_INFO_NOT_FOUND_MSG = "用户信息不存在";
}